package hoodoos.flow;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@NoArgsConstructor
public class FlowRulesConfigLine {

  @JSONField(name = "source")
  private String from;

  @JSONField(name = "target")
  private String to;

  @JSONField(name = "label")
  private String conditionScript;

  @JSONField(name = "index")
  private int priority;

  public FlowRulesConfigLine(String from, String to) {
    this.from = from;
    this.to = to;
  }
}
